/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-05 14:42:43
 * @LastEditors: LiuYan 15136056318@163.com
 * @LastEditTime: 2023-12-01 17:42:22
 * @FilePath: \react-template_pc\src\errors\404.tsx
 * @Description:
 */
import { type FC } from 'react'
import { Result, Button } from 'antd'
import { useRouter } from '@/hooks'
const _404: FC = () => {
  const router = useRouter()
  return (
    <>
      <Result
        status="404"
        title="404"
        subTitle="抱歉，您访问的页面不存在。"
        extra={
          <Button
            type="primary"
            onClick={() => {
              router.go(-1)
            }}
          >
            返回主页
          </Button>
        }
      />
    </>
  )
}
export default _404
